
//设置文件路径
void pathset()
{
char path[50];
int m,n;
if(inode_array[inum_cur].inum == 0)
strcpy(path,"/");
else
{
strcpy(path,"/");
m=0;
n=inum_cur;
while(m != inum_cur)
{
while(inode_array[n].iparent != m)
{
n = inode_array[n].iparent;
}
strcat(path,"/");
strcat(path,inode_array[n].file_name);
m = n;
n = inum_cur;
}
}
printf("[%s]@ ",path);

}
